package com.lcx;

import com.lcx.client.UserServiceImpl;
import org.apache.commons.lang3.math.NumberUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ServerBoot {

    public static void main(String[] args) throws Exception {
        int port = 8990;
        if (args.length > 0 && NumberUtils.isDigits(args[0])) {
            port = Integer.parseInt(args[0]);
        }
        SpringApplication.run(ServerBoot.class,args);
        UserServiceImpl.startServer("127.0.0.1",port);
    }
}
